import { Component } from '@angular/core';
import { HomePage } from '../home/home';
import { MinePage } from '../mine/mine';
import { TaskPage } from '../task/task';
import { TestPage } from '../test/test';

@Component({
  templateUrl: 'tabs.html'
})
export class TabsPage {
  tabRoots: Object[];
  tab1Root = TestPage;
  tab2Root = TaskPage;
  tab3Root = MinePage;
  constructor() {
    this.tabRoots = [
      {
        root: this.tab1Root,
        tabTitle: '头条',
        tabIcon: 'home'
      },
      {
        root: this.tab2Root,
        tabTitle: '任务',
        tabIcon: 'albums'
      },
      {
        root: this.tab3Root,
        tabTitle: '我的',
        tabIcon: 'body'
      }
    ];
  }
}
